package edu.whu.assignment8.service;

import edu.whu.assignment8.entity.Supplier;
import edu.whu.assignment8.exception.GoodsAdminException;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface SupplierService {
    Supplier addSupplier(Supplier supplier) throws GoodsAdminException;
    Supplier updateSupplier(long id, Supplier supplier) throws GoodsAdminException;
    Page<Supplier> findSuppliers(String name, Pageable pageable);
    Supplier getSupplier(long id);
    void deleteSupplier(long id);
}
